home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 13 / CU Amiga Magazine's Super CD-ROM 13 (1997)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1997-08].iso / CUCD / Graphics / Ghostscript / src / jpeg-6a / makefile.bcc < prev    next >
Makefile  |  1996-02-07  |  14KB  |  280 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # This makefile is suitable for Borland C on MS-DOS or OS/2.
  4. # It works with Borland C++ for DOS, revision 3.0 or later,
  5. # and has been tested with Borland C++ for OS/2, revision 2.0.
  6. # Thanks to Tom Wright and Ge' Weijers (original DOS) and
  7. # Ken Porter (OS/2) for this file.
  8.  
  9. # Read installation instructions before saying "make" !!
  10.  
  11. # Are we under DOS or OS/2?
  12. !if !$d(DOS) && !$d(OS2)
  13. !if $d(__OS2__)
  14. OS2=1
  15. !else
  16. DOS=1
  17. !endif
  18. !endif
  19.  
  20. # The name of your C compiler:
  21. CC= bcc
  22.  
  23. # You may need to adjust these cc options:
  24. !if $d(DOS)
  25. CFLAGS= -O2 -mm -w-par -w-stu -w-ccc -w-rch
  26. !else
  27. CFLAGS= -O1 -w-par -w-stu -w-ccc -w-rch
  28. !endif
  29. # -O2 enables full code optimization (for pre-3.0 Borland C++, use -O -G -Z).
  30. # -O2 is buggy in Borland OS/2 C++ revision 2.0, so use -O1 for now.
  31. # -mm selects medium memory model (near data, far code pointers; DOS only!)
  32. # -w-par suppresses warnings about unused function parameters
  33. # -w-stu suppresses warnings about incomplete structures
  34. # -w-ccc suppresses warnings about compile-time-constant conditions
  35. # -w-rch suppresses warnings about unreachable code
  36. # Generally, we recommend defining any configuration symbols in jconfig.h,
  37. # NOT via -D switches here.
  38.  
  39. # Link-time cc options:
  40. !if $d(DOS)
  41. LDFLAGS= -mm
  42. # memory model option here must match CFLAGS!
  43. !else
  44. LDFLAGS=
  45. # -lai full-screen app
  46. # -lc case-significant link
  47. !endif
  48.  
  49. # Put here the object file name for the correct system-dependent memory
  50. # manager file.
  51. # For DOS, we recommend jmemdos.c and jmemdosa.asm.
  52. # For OS/2, we recommend jmemnobs.c (flat memory!)
  53. # SYSDEPMEMLIB must list the same files with "+" signs for the librarian.
  54. !if $d(DOS)
  55. SYSDEPMEM= jmemdos.obj jmemdosa.obj
  56. SYSDEPMEMLIB= +jmemdos.obj +jmemdosa.obj
  57. !else
  58. SYSDEPMEM= jmemnobs.obj
  59. SYSDEPMEMLIB= +jmemnobs.obj
  60. !endif
  61.  
  62. # End of configurable options.
  63.  
  64.  
  65. # source files: JPEG library proper
  66. LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \
  67.         jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
  68.         jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \
  69.         jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \
  70.         jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
  71.         jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
  72.         jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
  73.         jquant2.c jutils.c jmemmgr.c
  74. # memmgr back ends: compile only one of these into a working library
  75. SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
  76. # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
  77. APPSOURCES= cjpeg.c djpeg.c jpegtran.c cdjpeg.c rdcolmap.c rdswitch.c \
  78.         rdjpgcom.c wrjpgcom.c rdppm.c wrppm.c rdgif.c wrgif.c rdtarga.c \
  79.         wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
  80. SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
  81. # files included by source files
  82. INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h \
  83.         jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h
  84. # documentation, test, and support files
  85. DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
  86.         wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc \
  87.         coderules.doc filelist.doc change.log
  88. MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \
  89.         makefile.mc6 makefile.dj makefile.wat makcjpeg.st makdjpeg.st \
  90.         makljpeg.st maktjpeg.st makefile.manx makefile.sas makefile.mms \
  91.         makefile.vms makvms.opt
  92. CONFIGFILES= jconfig.cfg jconfig.manx jconfig.sas jconfig.st jconfig.bcc \
  93.         jconfig.mc6 jconfig.dj jconfig.wat jconfig.vms
  94. OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
  95. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg testprog.jpg \
  96.         testimgp.jpg
  97. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  98.         $(OTHERFILES) $(TESTFILES)
  99. # library object files common to compression and decompression
  100. COMOBJECTS= jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
  101. # compression library object files
  102. CLIBOBJECTS= jcapimin.obj jcapistd.obj jctrans.obj jcparam.obj jdatadst.obj \
  103.         jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj jcprepct.obj \
  104.         jccoefct.obj jccolor.obj jcsample.obj jchuff.obj jcphuff.obj \
  105.         jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj
  106. # decompression library object files
  107. DLIBOBJECTS= jdapimin.obj jdapistd.obj jdtrans.obj jdatasrc.obj \
  108.         jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdphuff.obj \
  109.         jdmainct.obj jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj \
  110.         jidctflt.obj jidctint.obj jidctred.obj jdsample.obj jdcolor.obj \
  111.         jquant1.obj jquant2.obj jdmerge.obj
  112. # These objectfiles are included in libjpeg.lib
  113. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  114. # object files for sample applications (excluding library files)
  115. COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj \
  116.         rdswitch.obj cdjpeg.obj
  117. DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj \
  118.         rdcolmap.obj cdjpeg.obj
  119. TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj
  120.  
  121.  
  122. all: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe
  123.  
  124. libjpeg.lib: $(LIBOBJECTS)
  125.     - del libjpeg.lib
  126.     tlib libjpeg.lib /E /C @&&|
  127. +jcapimin.obj +jcapistd.obj +jctrans.obj +jcparam.obj +jdatadst.obj &
  128. +jcinit.obj +jcmaster.obj +jcmarker.obj +jcmainct.obj +jcprepct.obj &
  129. +jccoefct.obj +jccolor.obj +jcsample.obj +jchuff.obj +jcphuff.obj &
  130. +jcdctmgr.obj +jfdctfst.obj +jfdctflt.obj +jfdctint.obj +jdapimin.obj &
  131. +jdapistd.obj +jdtrans.obj +jdatasrc.obj +jdmaster.obj +jdinput.obj &
  132. +jdmarker.obj +jdhuff.obj +jdphuff.obj +jdmainct.obj +jdcoefct.obj &
  133. +jdpostct.obj +jddctmgr.obj +jidctfst.obj +jidctflt.obj +jidctint.obj &
  134. +jidctred.obj +jdsample.obj +jdcolor.obj +jquant1.obj +jquant2.obj &
  135. +jdmerge.obj +jcomapi.obj +jutils.obj +jerror.obj +jmemmgr.obj &
  136. $(SYSDEPMEMLIB)
  137. |
  138.  
  139. cjpeg.exe: $(COBJECTS) libjpeg.lib
  140.     $(CC) $(LDFLAGS) -ecjpeg.exe $(COBJECTS) libjpeg.lib
  141.  
  142. djpeg.exe: $(DOBJECTS) libjpeg.lib
  143.     $(CC) $(LDFLAGS) -edjpeg.exe $(DOBJECTS) libjpeg.lib
  144.  
  145. jpegtran.exe: $(TROBJECTS) libjpeg.lib
  146.     $(CC) $(LDFLAGS) -ejpegtran.exe $(TROBJECTS) libjpeg.lib
  147.  
  148. rdjpgcom.exe: rdjpgcom.c
  149. !if $d(DOS)
  150.     $(CC) -ms -O rdjpgcom.c
  151. !else
  152.     $(CC) $(CFLAGS) rdjpgcom.c
  153. !endif
  154.  
  155. # On DOS, wrjpgcom needs large model so it can malloc a 64K chunk
  156. wrjpgcom.exe: wrjpgcom.c
  157. !if $d(DOS)
  158.     $(CC) -ml -O wrjpgcom.c
  159. !else
  160.     $(CC) $(CFLAGS) wrjpgcom.c
  161. !endif
  162.  
  163. # This "{}" syntax allows Borland Make to "batch" source files.
  164. # In this way, each run of the compiler can build many modules.
  165. .c.obj:
  166.     $(CC) $(CFLAGS) -c{ $<}
  167.  
  168. jconfig.h: jconfig.doc
  169.     echo You must prepare a system-dependent jconfig.h file.
  170.     echo Please read the installation directions in install.doc.
  171.     exit 1
  172.  
  173. clean:
  174.     - del *.obj
  175.     - del libjpeg.lib
  176.     - del cjpeg.exe
  177.     - del djpeg.exe
  178.     - del jpegtran.exe
  179.     - del rdjpgcom.exe
  180.     - del wrjpgcom.exe
  181.     - del testout*.*
  182.  
  183. test: cjpeg.exe djpeg.exe jpegtran.exe
  184.     - del testout*.*
  185.     djpeg -dct int -ppm -outfile testout.ppm  testorig.jpg
  186.     djpeg -dct int -gif -outfile testout.gif  testorig.jpg
  187.     cjpeg -dct int -outfile testout.jpg  testimg.ppm
  188.     djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
  189.     cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
  190.     jpegtran -outfile testoutt.jpg testprog.jpg
  191. !if $d(DOS)
  192.     fc /b testimg.ppm testout.ppm
  193.     fc /b testimg.gif testout.gif
  194.     fc /b testimg.jpg testout.jpg
  195.     fc /b testimg.ppm testoutp.ppm
  196.     fc /b testimgp.jpg testoutp.jpg
  197.     fc /b testorig.jpg testoutt.jpg
  198. !else
  199.     echo n > n.tmp
  200.     comp testimg.ppm testout.ppm < n.tmp
  201.     comp testimg.gif testout.gif < n.tmp
  202.     comp testimg.jpg testout.jpg < n.tmp
  203.     comp testimg.ppm testoutp.ppm < n.tmp
  204.     comp testimgp.jpg testoutp.jpg < n.tmp
  205.     comp testorig.jpg testoutt.jpg < n.tmp
  206.     del n.tmp
  207. !endif
  208.  
  209.  
  210. jcapimin.obj: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  211. jcapistd.obj: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  212. jccoefct.obj: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  213. jccolor.obj: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  214. jcdctmgr.obj: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  215. jchuff.obj: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  216. jcinit.obj: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  217. jcmainct.obj: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  218. jcmarker.obj: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  219. jcmaster.obj: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  220. jcomapi.obj: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  221. jcparam.obj: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  222. jcphuff.obj: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  223. jcprepct.obj: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  224. jcsample.obj: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  225. jctrans.obj: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  226. jdapimin.obj: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  227. jdapistd.obj: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  228. jdatadst.obj: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  229. jdatasrc.obj: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  230. jdcoefct.obj: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  231. jdcolor.obj: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  232. jddctmgr.obj: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  233. jdhuff.obj: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  234. jdinput.obj: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  235. jdmainct.obj: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  236. jdmarker.obj: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  237. jdmaster.obj: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  238. jdmerge.obj: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  239. jdphuff.obj: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  240. jdpostct.obj: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  241. jdsample.obj: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  242. jdtrans.obj: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  243. jerror.obj: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  244. jfdctflt.obj: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  245. jfdctfst.obj: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  246. jfdctint.obj: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  247. jidctflt.obj: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  248. jidctfst.obj: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  249. jidctint.obj: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  250. jidctred.obj: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  251. jquant1.obj: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  252. jquant2.obj: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  253. jutils.obj: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  254. jmemmgr.obj: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  255. jmemansi.obj: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  256. jmemname.obj: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  257. jmemnobs.obj: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  258. jmemdos.obj: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  259. jmemmac.obj: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  260. cjpeg.obj: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  261. djpeg.obj: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  262. jpegtran.obj: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  263. cdjpeg.obj: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  264. rdcolmap.obj: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  265. rdswitch.obj: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  266. rdjpgcom.obj: rdjpgcom.c jinclude.h jconfig.h
  267. wrjpgcom.obj: wrjpgcom.c jinclude.h jconfig.h
  268. rdppm.obj: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  269. wrppm.obj: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  270. rdgif.obj: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  271. wrgif.obj: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  272. rdtarga.obj: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  273. wrtarga.obj: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  274. rdbmp.obj: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  275. wrbmp.obj: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  276. rdrle.obj: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  277. wrrle.obj: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  278. jmemdosa.obj: jmemdosa.asm
  279.     tasm /mx jmemdosa.asm
  280.